<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<script type="text/javascript">
function uploadImg() {
	var a = document.getElementById("imgFileForm");
	a.submit();
}
</script>

<form id="imgFileForm" action="<%=basePath%>fileUpload.action?imgT=<%=request.getParameter("imgT")%>" method="post" enctype="multipart/form-data">
	<input type="file" id="imgFile" name="imgfile" onchange="uploadImg()" size="13"/>
</form>
